var app = new Vue({
	el: '#app',
	extends:isLogin,
	components: {
		footers: footer,
		login:login,
	},
	data: {
		compCardDetailData: '', //企业名片详情数据
	},
	methods: {
		//获取企业名片详情
		getCompCardDetail: function() {
			var _this = this;
			var url = location.href;
			var param = {};
			var OrgCode = xq.getQueryString('orgCode', url);
			var CompCardId = localStorage.getItem('CompCardId');
			var method = 'EntCard/GetEnterpriseCardDetail';
			if(OrgCode) {
				param = {
					OrgCode: OrgCode,
					KeyId:''
				}
			} else {
				param = {
					OrgCode:'',
					KeyId: CompCardId,
				};
			}
			xq.getUrl(method, param, function(res) {
				if(res.data) {
					var data = res.data;
					for(var i = 0; i < data.length; i++) {
						if(data[i].LogoPath) {
							data[i].LogoPath = xq.imgUrl + data[i].LogoPath;
						}
					}
					_this.compCardDetailData = data;
				}
			});
		},
	},
	mounted: function() {
		this.getCompCardDetail();
//		xq.confitAnimate();
	},
	updated: function() {

	}
})